package com.yitongmao.bean;

import org.litepal.crud.DataSupport;

import java.util.List;

/*
* 作者：梁伟航 on 2017/7/17 15:17
* 类的用途：
*/
public class SearchListBean extends DataSupport{

    /**
     * result : {"state":"1","code":"ok","url":null,"obj":null,"message":""}
     * goodsList : [{"id":10,"retailPrice":45153,"describes":"个梵蒂冈","state":"00","subtitle":"分割","thumb":"http://demo-file.cdtupsmfw.com/images/2017/07/12/1499829518864024_thumb.jpg","retailUnit":"t","goodsName":"个梵蒂冈"},{"id":11,"retailPrice":385737,"describes":"jytjty","state":"01","subtitle":"jytjt","thumb":"http://demo-file.cdtupsmfw.com/images/2017/07/13/1499927605646773_thumb.jpg","retailUnit":"kg","goodsName":"jtyj"}]
     */

    public ResultBean result;
    public List<GoodsListBean> goodsList;

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public List<GoodsListBean> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<GoodsListBean> goodsList) {
        this.goodsList = goodsList;
    }

    public static class ResultBean {
        /**
         * state : 1
         * code : ok
         * url : null
         * obj : null
         * message :
         */

        public String state;
        public String code;
        public Object url;
        public Object obj;
        public String message;
    }

    public static class GoodsListBean {
        /**
         * id : 10
         * retailPrice : 45153.0
         * describes : 个梵蒂冈
         * state : 00
         * subtitle : 分割
         * thumb : http://demo-file.cdtupsmfw.com/images/2017/07/12/1499829518864024_thumb.jpg
         * retailUnit : t
         * goodsName : 个梵蒂冈
         */

        public int id;
        public double retailPrice;
        public String describes;
        public String state;
        public String subtitle;
        public String thumb;
        public String retailUnit;
        public String goodsName;
    }
}
